<template>
<div class="row">
    <div class="col-md-4 col-md-offset-4 search-wrapper">
	<form class="search-form" role="search">
		<input class="search-input" placeholder="找你想要的" type="text" v-model="keyword" name="keyword" >
		<input class="search-btn" @click="search" type="button" value="搜索">
	</form>
</div>
</div>
</template>,
<script>
export default {
	emits:['keyword'],
	data(){
		return {
			keyword:''
		}
	},
	methods:{
		search(){
			this.$emit('keyword',this.keyword)
		}
	}
	
}
</script>